<template>
  <div id="myinput">
      <input :type="type" :placeholder="placeholder" :value="value" @input="intall">
 </div>
</template>

<script>
export default {
  name: '',
  props:{
      value:"",
      type:{
          type:String,
          default:"text"
      },
      placeholder:{
          type:String,
          default:"placeholder"
      }
  },
  data() { 
    return {

    }
  },
  created() {

  },
  methods:{
      intall(e){
      this.$emit("input",e.target.value)
      }
  },

 }
</script>

<style  lang="scss" scoped>

</style>